#!/bin/ksh
#set -x
start_secs=$SECONDS
export one_fn=
if [[ "$1" = "-f" ]] ; then
	export one_fn="$2"
	shift 1
fi
#set +x
export ii=$II
export i=$I
op_sys=$(/bin/uname -s)
if [[ "$op_sys" != "${op_sys##CYGWIN}" ]] ; then
  is_cygwin=1
else
  is_cygwin=0
fi
#set -x
echo "#!/bin/ksh" > $ii/srcenv.ksh
vfiles[0]="j2merss1"
vfiles[1]="j2mejlo"
vfiles[2]="j2mefin"
vfiles[3]="j2merss1o"
vfiles[4]="j2memste"
export vfiles
. $I/mkj2melines.sh $is_cygwin ${vfiles[0]} RSSReader mobile-rss-reader
. $I/mkj2melines.sh $is_cygwin ${vfiles[1]} JLogMicro jlogmicro
. $I/mkj2melines.sh $is_cygwin ${vfiles[2]} Finarea finarea-midlet
. $I/mkj2melines.sh $is_cygwin ${vfiles[3]} RSSReadero mobile-rss-reader/1.11.1
. $I/mkj2melines.sh $is_cygwin ${vfiles[4]} NewsReader mobilesuite
end_secs=$SECONDS
echo \
  "ELAPSED=$(( (end_secs - start_secs)/60 )):$(( (end_secs - start_secs)%60 ))"
